from msilib import Dialog

from PyQt5 import QtWidgets, QtCore
from PyQt5.QtWidgets import QMainWindow


class Text(QMainWindow):
    def __init__(self):
        super(Text, self).__init__()
        self.initUI()

    def initUI(self):
        self.setGeometry(200, 200, 300, 200)
        self.btn=QtWidgets.QPushButton(Dialog)
        self.btn.setGeometry(QtCore.QRect(340, 30, 75, 23))
        self.btn.setObjectName("pushButton")
        self.btn.clicked.connect(self.train)
